﻿using System;
using System.Collections.Generic;
using System.Text;

namespace UtilZ.Dotnet.Ex.ParaManagement
{
    /// <summary>
    /// 参数不存在解决方法事件参数
    /// </summary>
    public class ParaResolveEventArgs : EventArgs
    {
        /// <summary>
        /// 参数名
        /// </summary>
        public string ParaName { get; private set; }

        /// <summary>
        /// 参数类型
        /// </summary>
        public Type ParaType { get; private set; }

        /// <summary>
        /// 是否已成功获取到参数值[true:获取到;false:未获取到]
        /// </summary>
        public bool Succes { get; set; } = false;

        /// <summary>
        /// 参数值
        /// </summary>
        public object Value { get; set; } = null;

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="paraName">参数名</param>
        /// <param name="paraType">参数类型</param>
        public ParaResolveEventArgs(string paraName, Type paraType)
        {
            this.ParaName = paraName;
            this.ParaType = paraType;
        }

    }

}
